package com.newcapec.service.impl;

import com.newcapec.bean.ColumnEntity;
import com.newcapec.dao.ColumnDao;
import com.newcapec.dao.impl.ColumnDaoImpl;
import com.newcapec.service.ColumnService;

import java.util.List;

/**
 * @Description:
 * @Author:yangshupeng
 * @Date: 2022/3/28 22:22
 * @Version:1.0
 */
public class ColumnServiceImpl implements ColumnService {
    ColumnDao columnDao = new ColumnDaoImpl();
    @Override
    public boolean addColumn(ColumnEntity columnEntity) {
        return columnDao.addColumn(columnEntity);
    }

    @Override
    public boolean deleteColumn(String columnId) {
        return columnDao.deleteColumn(columnId);
    }

    @Override
    public boolean updateColumn(ColumnEntity columnEntity) {
        return columnDao.updateColumn(columnEntity);
    }

    @Override
    public List<ColumnEntity> query(int offset, int pageSize, ColumnEntity column) {
        return columnDao.query(offset,pageSize,column);
    }

    @Override
    public List<ColumnEntity> queryAll() {
        return columnDao.queryAll();
    }

    @Override
    public ColumnEntity queryColumnById(String id) {
        return columnDao.queryColumnById(id);
    }

    @Override
    public ColumnEntity queryColumnByName(String name) {
        return columnDao.queryColumnByName(name);
    }

    @Override
    public int getAllCount(String name) {
        return columnDao.getAllCount(name);
    }


}
